/* 发现页面特有样式 */
.discover-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 二级导航栏 */
.secondary-nav {
    width: 220px;
    background: linear-gradient(135deg, #2b2d31 0%, #1e1f22 100%);
    border-radius: 12px;
    padding: 16px 8px;
    margin-right: 20px;
    border: 1px solid #40444b;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    color: #b5bac1;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.nav-item {
    padding: 10px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 4px;
    color: #dbdee1;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(114, 137, 218, 0.1);
    color: #ffffff;
}

.nav-item.active {
    background: rgba(114, 137, 218, 0.2);
    color: #ffffff;
}

.nav-item .icon {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.unread-count {
    margin-left: auto;
    background-color: #F04747;
    color: white;
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
}

/* 内容区域 */
.channel-content {
    flex: 1;
    padding: 0;
}

/* 搜索框 */
.channel-search {
    margin-bottom: 24px;
    position: relative;
}

.channel-search input {
    width: 100%;
    max-width: 600px;
    background: #1e1f22;
    border: 1px solid #111214;
    border-radius: 8px;
    padding: 14px 20px 14px 48px;
    color: #dbdee1;
    font-size: 15px;
    transition: all 0.2s ease;
}

.channel-search input:focus {
    border-color: #7289da;
    box-shadow: 0 0 0 3px rgba(114, 137, 218, 0.3);
    outline: none;
}

.channel-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #b5bac1;
    font-size: 18px;
}

/* 广告轮播区 */
.ad-carousel {
    height: 200px;
    background-color: var(--dark-bg);
    border-radius: 12px;
    margin-bottom: 32px;
    overflow: hidden;
    position: relative;
    border: 1px solid #40444b;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.carousel-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
    position: relative;
}

.carousel-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.carousel-slide.active {
    display: block;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    max-width: 50%;
    z-index: 2;
}

.slide-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-description {
    font-size: 16px;
    color: #dbdee1;
    margin-bottom: 20px;
    line-height: 1.5;
}

.slide-button {
    background: linear-gradient(135deg, #7289da 0%, #5b6eae 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.slide-button:hover {
    background: linear-gradient(135deg, #677bc4 0%, #4f5f9e 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(114, 137, 218, 0.3);
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 40px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background-color: #7289da;
    transform: scale(1.2);
}

/* 分类标签 */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.category-tag {
    background: rgba(40, 42, 46, 0.5);
    color: #b5bac1;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-tag:hover {
    background: rgba(114, 137, 218, 0.2);
    color: #ffffff;
}

.category-tag.active {
    background: linear-gradient(135deg, #7289da 0%, #5b6eae 100%);
    color: white;
}

/* 频道列表 */
.channel-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.channel-card {
    background: linear-gradient(135deg, #2b2d31 0%, #1e1f22 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #40444b;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-color: #7289da;
}

.channel-banner {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.channel-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(114, 137, 218, 0.8);
    color: white;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
}

.channel-info {
    padding: 20px;
}

.channel-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #f2f3f5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-verified {
    color: #7289da;
    font-size: 16px;
}

.channel-description {
    font-size: 14px;
    color: #b5bac1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.channel-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #949ba4;
    margin-bottom: 12px;
}

.channel-members {
    margin-right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.channel-activity {
    display: flex;
    align-items: center;
    gap: 6px;
}

.activity-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #43B581;
}

/* 已加入按钮样式 */
.join-button.joined {
    background-color: #4CAF50;
    cursor: default;
}

.join-button.joined:hover {
    background-color: #4CAF50;
}

/* 已加入频道卡片样式 */
.channel-card.joined-channel {
    border: 2px solid #4CAF50;
    position: relative;
}

.channel-card.joined-channel::after {
    content: "已加入";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #f2f3f5;
    position: relative;
    padding-left: 16px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #7289da 0%, #5b6eae 100%);
    border-radius: 2px;
}

.view-all {
    color: #7289da;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.view-all:hover {
    color: #8fa3ff;
    text-decoration: none;
    transform: translateX(4px);
}

/* 游戏分类展示 */
.game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.game-category {
    background: linear-gradient(135deg, #2b2d31 0%, #1e1f22 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #40444b;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-color: #7289da;
}

.game-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #7289da;
}

.game-name {
    font-size: 16px;
    font-weight: 600;
    color: #f2f3f5;
}

.game-count {
    font-size: 13px;
    color: #b5bac1;
    margin-top: 8px;
}

/* 两栏布局 */
.discover-layout {
    display: flex;
    gap: 24px;
}

@media (max-width: 1024px) {
    .discover-layout {
        flex-direction: column;
    }

    .secondary-nav {
        width: 100%;
        margin-right: 0;
        margin-bottom: 24px;
    }

    .slide-content {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .channel-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .game-categories {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .slide-title {
        font-size: 22px;
    }

    .slide-description {
        font-size: 14px;
    }
}